<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>   
 
<script>
$(function() {	
		var m_os="${os}";
		if(m_os=='wechat' || m_os=='web'){
			 $(".btn-popup").bind("click",function(){
				    $(".bg-popup").fadeIn(500);
				    $("#popup").animate({top:'7%'},200);
				});
		}else{
			 $(".btn-popup").bind("click",function(){
				    $(".bg-popup").fadeIn(500);
				    $("#popup").animate({top:'0%'},200);
				});
		}
		$(".bg-popup").bind("click",function(){
		   $("#popup").animate({top:'-100%'},200);
		    $(this).fadeOut(500);
		});
		$(".btn-popup-2").bind("click",function(){
		    $(".bg-popup").fadeOut(500);
		    $("#popup").animate({top:'-100%'},200);
		});
		
		
	  var $items = $('.popup-content>ul.common>li');
	  $items.click(function() {
	    $items.removeClass('on');
	    $(this).addClass('on');

	    var index = $items.index($(this));
	    $('.popup-content>.show-content').hide().eq(index).show();
	  }).eq(0).click();	 	  
	});
</script>
<div id="main">
<input type="hidden" id="buycashheleppage_url" value="${buycashheleppage_url}" />
<input type="hidden"  id="buycashone_url" value="${buycashone_url }" />
    <div class="popup-content2">
        <div class="clearfix">
        <h4 class="leftArea">
        		<c:if test="${(logBuyCashVO.bill_type == null||logBuyCashVO.bill_type=='')&&(logBuyCashVO.type==''||logBuyCashVO.type==null)}"><span>全部</span></c:if>
        		<c:if test="${logBuyCashVO.bill_type == 2}"><span>收入&nbsp;></span></c:if> 
        		<c:if test="${logBuyCashVO.bill_type == 1}"><span>支出&nbsp;></span></c:if>
	         	<c:if test="${logBuyCashVO.type == 1}"><span>奖项分配</span></c:if>
	         	<c:if test="${logBuyCashVO.type == 2}"><span>退款</span></c:if>
	         	<c:if test="${logBuyCashVO.type == 3}"><span>购买</span></c:if>
        </h4>
        <p class="rightArea btn-popup"><span>筛选</span></p></div>
    </div>
    <div class="content2" id="listSelect">
        <ul id="logSelect">
          <c:forEach items="${logBuyCashScreenList}" var="c">
             <c:if test="${'ios'==os}">
	 			<li class="clearfix" onclick="GetToken(${c.logByCashId})">
	   		 </c:if>
             <c:if test="${'wechat'==os ||'web'==os}">
	 			<li class="clearfix" onclick="GetDetail('${c.logByCashId}')">
	   		 </c:if>
	    	 <c:if test="${'android'==os}">
	     		<li class="clearfix" onclick="android.startUrl('交易明细','${buycashone_url}','logByCashId->${c.logByCashId}')">
	    	 </c:if>
                  <p class="leftArea">
                  	<c:if test="${c.type==1}"><span>来自于${c.award_name}</span><br></c:if>
                  	<c:if test="${c.type==2}"><span>退款</span><br></c:if>
                  	<c:if test="${c.type==3}"><span>购物&nbsp;(订单号：${c.order_no})</span><br></c:if>
                  	<fmt:parseDate value=" ${c.create_time}" var="date" pattern="yyyy-MM-dd HH:mm:ss"/>  
			  		<span class="time"><fmt:formatDate value="${date}" pattern="yyyy-MM-dd HH:mm" /></span>
                  </p>
                  <p class="rightArea <c:if test="${c.bill_type == 2 }">col-arresting</c:if>">
                   <c:if test="${c.bill_type == 1 }">-</c:if>
                   <c:if test="${c.bill_type == 2 }">+</c:if>
                   ${c.buy_cash}
                  </p>
              </li>
          </c:forEach>  
         </ul>       
	</div>
	<div class="bg-popup"></div>
    <div id="popup">
        <div class="popup-content">
            <div class="clearfix"><h4 class="leftArea"><span>请选择您要筛选的分类</span></h4><p class="rightArea"><span class="btn-popup-2">筛选</span></p></div>
            <ul class=" one whole common ">
                <li class="whole-one"><span>全部</span></li>
                <li><span>收入</span></li>
                <li><span>支出</span></li>
            </ul>
             <ul class="show-content">
	           		<li class="whole-one" onclick="getList('','')"><span>全部</span></li>
	           		<li class="whole-two" onclick="getList('',2)" ><span>收入</span></li>
	           		<li class="whole-there" onclick="getList('',1)"><span>支出</span></li>
            </ul>
             <ul class="show-content">
	                <li class="whole-one" onclick="getList(1,2)"><span>奖励分配</span></li> 
	            	<li class="whole-one" onclick="getList(2,2)"><span>退款</span></li>
            </ul>
            <ul class="show-content">
	            	<li class="whole-one" onclick="getList(3,1)"><span>购物</span></li>
            </ul>
        </div>
    </div> 
	    <c:if test="${logBuyCashScreenList.size()==0}">
		  <div class="zanwu">
		    <span><img src="/img/app/zanwu.png"></span>
		    <p>暂无记录</p>
		  </div>
		</c:if> 	
</div>	
